package com.billbaijie.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.billbaijie.model.AutUserInfo;

public class AutUserInfoMapper implements RowMapper<AutUserInfo> {

	@Override
	public AutUserInfo mapRow(ResultSet rs, int row) throws SQLException {
		AutUserInfo autUserInfo = new AutUserInfo();
		autUserInfo.setUserId(Integer.parseInt(rs.getString("userId")));
		autUserInfo.setUserName(rs.getString("userName"));
		autUserInfo.setDeptNo(rs.getString("deptNo"));
		autUserInfo.setUserPassword(rs.getString("userPassword"));
		autUserInfo.setUserRemark(rs.getString("userRemark"));
		autUserInfo.setUserDate(rs.getString("userDate"));
		autUserInfo.setUserEmail(rs.getString("userEmail"));
		autUserInfo.setUserPhone(rs.getString("userPhone"));
		autUserInfo.setStatus(rs.getString("status"));
		
		return autUserInfo;
	}

}
